package com.logisticsrepair.util;

import cn.hutool.db.nosql.redis.RedisDS;
import cn.hutool.setting.Setting;
import org.springframework.stereotype.Component;
import redis.clients.jedis.Jedis;

@Component
public class RedisUtil {
    private static Setting setting;
    static {
        setting = new Setting("config/redis.setting");
    }

    public static Jedis getRedis(){
        return RedisDS.create(setting, "1").getJedis();
    }

}
